import { http } from "@/uni-sub-base/service/request.js"
import { getBaseUrls } from "@/utils/appUrl.js"
let serviceName = "ErpReport/"
// 获取业务员
export function getSalesmanList(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetEcode",
        data,
    })
}

// 获取客户
export function getCustomList(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetBcode",
        data,
    })
}
//商品分析
export function UserGoodList(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "UserGoodList",
        data,
    })
}
//行为画像
export function UserSaleRrport(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "UserSaleRrport",
        data,
    })
}
//获取项目
export function GetProject(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetProject",
        data,
    })
}
//获取组织
export function GetOrganizations(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetOrganizations",
        data,
    })
}
//获取仓库
export function GetStock(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetStock",
        data,
    })
}
//获取物料
export function GetMaterial(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetMaterial",
        data,
    })
}
//获取部门
export function GetDept(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetDept",
        data,
    })
}
//获取商品详情
export function GetGoodData(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetGoodData",
        data,
    })
}
//获取商品
export function GetGood(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetGood",
        data,
    })
}
//获取商品分类
export function GetGoodGroup(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetGoodGroup",
        data,
    })
}
//获取商品分类all
export function GetGoodGroupTree(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetGoodGroupTree",
        data,
    })
}
//获取商品库存列表
export function GetGoodStock(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetGoodStock",
        data,
    })
}
//获取销售明细商品分页
export function GetSaleDetailGoodPage(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetSaleDetailGoodPage",
        data,
    })
}
//商品清单按客户显示
export function GetSaleDetailUserPage(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetSaleDetailUserPage",
        data,
    })
}
// 获取erp首页-账户信息
export function getBalanceStatistics(data) {
    return http.get({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetBalanceStatistics",
        data,
    })
}

// 获取erp首页-销售、经营状况
export function getSaleSummaryStatistics(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetSaleSummaryStatistics",
        data,
    })
}

// 获取erp首页-库存统计
export function getStockSummary(data) {
    return http.get({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetStockSummary",
        data,
    })
}

// 获取账户列表
export function getAccountList(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetAccountList",
        data,
    })
}

// 获取账户收支统计
export function getAccountStatistics(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetAccountStatistics",
        data,
    })
}

// 获取收支明细分页
export function getAccountDetailPage(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetAccountDetailPage",
        data,
    })
}

// 获取费用统计
export function getCostStatistics(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetCostStatistics",
        data,
    })
}

// 获取费用明细分页
export function getCostDetailPage(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetCostDetailPage",
        data,
    })
}

// 获取销售统计
export function getSaleStatistics(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetSaleStatistics",
        data,
    })
}

// 获取销售明细分页
export function getSaleDetailPage(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetSaleDetailPage",
        data,
    })
}

// 往来金额明细
export function getCtcOverList(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetCtcOverList",
        data,
    })
}

// 获取应收/应付统计
export function getCustomerStatistics(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetCustomerStatistics",
        data,
    })
}

// 获取明细排序项
export function getTradeOrderBy() {
    return http.get({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetTradeOrderBy",
    })
}

// 获取明筛选项
export function getTradeFitel() {
    return http.get({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetTradeFitel",
    })
}

// 获取应收明细
export function getArApDetailList(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetArApDetailList",
        data,
    })
}

// 获取应付明细
export function getPayDetailList(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetPayDetailList",
        data,
    })
}

// 获取库存统计分页
export function getProductStockPage(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetProductStockPage",
        data,
    })
}
//获取应收详情
export function GetArApDetail(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetArApDetail",
        data,
    })
}
//埋点访问记录
export function agenttracklist(data) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "PageTackList",
        data,
    })
}
